let rules = {
    noEmpty: (val)=>{
        return !val
    },
    numberic: {
        pattern: /^[0-9]*$/
    }
}
function validate(value,rule){

}
export default {
    option:{},
    validate(data, rules){
        let res = {}
        let tem = {}
        for(let prop in data){
            tem = validate(data[prop])
            if(Object.keys(res).indexOf(prop)>=0){
                res[prop].push()
            }else{
                res[prop] = [validate(data[prop])]
            }
        }
    },
    set(opt){
        Object.assign(this.option,opt)
    },

}